<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Your description goes here" />
<meta name="keywords" content="your,keywords,goes,here" />
<link rel="stylesheet" type="text/css" media="screen,projection"
	href="<%=basePath%>css/blue/style_screen.css" />
<link rel="stylesheet" type="text/css" media="print"
	href="<%=basePath%>css/blue/style_print.css" />
<title>首页</title>
<script type="text/javascript" src="<%=basePath%>fckeditor/fckeditor.js"></script>
</head>
<body>
	<div class="page-container-1">
		<div class="site-name">
			<p class="title">
				<a href="<%=basePath%>index.html">陕西省人才发展网</a>
			</p>
			<p class="subtitle">
				<a href="<%=basePath%>index.html"></a>
			</p>
		</div>
		<div class="site-slogan-container">
			<div class="site-slogan">
				<p class="title">陕西省人才发展网</p>
			</div>
		</div>
		<!-- Header banner -->
		<div>
			<img class="img-header" src="./img/header.jpg" alt="" />
		</div>
		<!-- Navigation Level 2 -->
		<div class="nav2">
			<ul>
				<li><a href="<%=basePath%>index.html" >主页</a></li>
				<li><a href="<%=basePath%>rencai.html">人才</a></li>
				<li><a href="<%=basePath%>guide.html">指导类</a></li>
				<li><a href="<%=basePath%>adv.html">广告类</a></li>
				<li><a href="<%=basePath%>bbs.html" class="selected">论坛</a></li>
				<c:if test="${r"${not empty user }"}">
					<li><a
						href="<%=basePath%>servlet/InitServlet?id=${r"${user.id}"}&method=personCenter">个人中心</a></li>
				</c:if>
				<c:if test="${r"${empty user }"}">
					<li><a href="<%=basePath%>login.html">登陆</a><a
						href="<%=basePath%>register.html">注册</a></li>
				</c:if>
				<c:if test="${r"${not empty user }"}">
					<li>欢迎你:${r"${user.name}"}</li>
				</c:if>
			</ul>
		</div>
		<div class="content1" style="margin-top: 30px;">
			<div>
				<center>
					<table style="border: 1px solid #BCE2F3;">
						<tr style="text-align:center; height: 28px;border-bottom: 1px solid #64B8E4;background: #E4F2FB;">
							<td><font style="font-family:'宋体'; font-weight: bold;">发表人</font></td>
							<td><font style="font-family:'宋体';font-weight: bold;">心情</font></td>
							<td><font style="font-family:'宋体';font-weight: bold;">内容</font></td>
							<td><font style="font-family:'宋体';font-weight: bold;">时间</font></td>
						</tr>
						<c:forEach items="${r"${Blist.list}"}" var="b">
							<tr>
								<td style="font-family:'宋体'; font-size:15px;">${r"${b.uname}"}</td>
								<td style="font-family:'宋体'; font-size:15px;">${r"${b.mood }"}</td>
								<td style="font-family:'宋体'; font-size:15px;">${r"${b.content }"}</td>
								<td style="font-family:'宋体'; font-size:15px;">${r"${b.time }"}</td>
							</tr>
						</c:forEach>
					</table>
					<div style="margin-top: 10px;">
					<font color="#0000EE" style="font-family:'宋体'; font-size:15px; font-weight: bold;">共${r"${Blist.maxPage}"}页</font>&nbsp;&nbsp; <a style="text-decoration: NONE;"
						href="<%=basePath%>servlet/InitServlet?m1=AllBBS&method=bbs"><font color="#0000EE" style="font-family:'宋体'; font-size:15px;font-weight: bold;">第一页</font></a>
					<a style="text-decoration: NONE;"
						href="<%=basePath%>servlet/InitServlet?m1=AllBBS&method1=pre&method=bbs"><font color="#0000EE" style="font-family:'宋体'; font-size:15px;font-weight: bold;">上一页</font></a>
					<c:forEach begin="1" end="${r"${Blist.maxPage}"}" step="1" var="i">
	&nbsp;&nbsp;<a style="text-decoration: NONE;"
							href="<%=basePath%>servlet/InitServlet?m1=AllBBS&method=bbs&method1=index&ind=${r"${i}"}"><font color="#0000EE" style="font-family:'宋体'; font-size:15px;font-weight: bold;">${r"${i }"}</font></a>
					</c:forEach>
					&nbsp;&nbsp; <a style="text-decoration: NONE;"
						href="<%=basePath%>servlet/InitServlet?m1=AllBBS&method1=next&method=bbs"><font color="#0000EE" style="font-family:'宋体'; font-size:15px;font-weight: bold;">下一页</font></a>
					<a style="text-decoration: NONE;"
						href="<%=basePath%>servlet/InitServlet?m1=AllBBS&method1=last&method=bbs"><font color="#0000EE" style="font-family:'宋体'; font-size:15px;font-weight: bold;">最后一页</font></a>
				</div>
				</center>
			</div>
			<c:if test="${r"${not empty user}"}">
				<div>
					<form action="<%=basePath%>servlet/InitInitServlet?m1=AllBBS"
						method="post">
						<table>
							<tr>
								<td>心情</td>
								<td><select>
										<option>高兴</option>
										<option>愤怒</option>
										<option>微笑</option>
										<option>大笑</option>
										<option>悲伤</option>
										<option>惊讶</option>
										<option>生气</option>
										<option>无辜</option>
										<option>大哭</option>
										<option>感慨</option>
										<option>无精打采</option>
								</select></td>
							</tr>
							<tr>
								<td>内容</td>
								<td><script type="text/javascript">
									var myFCKeditor = new FCKeditor('FCKeditor');
									myFCKeditor.BasePath = "fckeditor/";
									myFCKeditor.Width = "500";
									myFCKeditor.Height = "300";
									myFCKeditor.ToolbarSet = "Basic";
									myFCKeditor.Create();
								</script></td>
							</tr>
							<tr>
								<td><input type="submit" value="发表" /></td>
								<td><input type="reset" value="重置" /></td>
							</tr>
						</table>
					</form>
				</div>
			</c:if>
		</div>
		<div class="sidebar" style="margin-top: 30px; width: 290px;">
			<p>
				<font style="font-size:15px; font-family:'宋体';font-weight: bold;">热点新闻</font>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a style="color: gray;text-decoration: none;" title="更多" href="<%=basePath%>servlet/AllNewsServlet?m=allnews">>>>更多</a></p>
			
			<div style="margin-top: 20px;">
				<c:forEach items="${r"${zxnl}"}" var="zx">
					<li style="list-style-type:none;"><a
						style="text-decoration: NONE"
						href="<%=basePath %>servlet/CKServlet?method=zxnews&id=${r"${zx.id}"}"
						title="${r"${zx.title}"}" target="_blank"><font
							style="font-size:15px; ">${r"${fn:substring(zx.title,1,16)}"}......</font></a>
					</li>
					<br />
				</c:forEach>
			</div>
		</div>

		<!-- FOOTER -->
		<div class="footer">
			<jsp:include page="public/footer.jsp"></jsp:include>
			<p>
				<b>Copyright &copy; 2006 Your Company | All Rights Reserved</b>
			</p>
		</div>
	</div>
</body>
</html>
